package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 日期总排课表，计算缺课使用
 * </p>
 *
 * @author hpiggy
 * @since 2023-07-28
 */
@TableName("course_scheduling_always")
@ApiModel(value = "CourseSchedulingAlways对象", description = "日期总排课表，计算缺课使用")
@Data
public class CourseSchedulingAlways implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.NONE)
    private Long id;

    @ApiModelProperty("次课，如第1次为1，第2次为2")
    private Integer num;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("年段，0少儿，1小学，2初中，3高中")
    private Integer gradeSection;

    @ApiModelProperty("时间段开始时间")
    private LocalDate startDate;

    @ApiModelProperty("时间段结束时间")
    private LocalDate endDate;

    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
}
